using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsMaterialrequirementdetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Materialrequirementdetail"; 

		public const string C_MATERIALREQUIREMENTDETAILID = "MATERIALREQUIREMENTDETAILID";
		public const string C_MATERIALREQUIREMENTID = "MATERIALREQUIREMENTID";
		public const string C_PLANDETAILID = "PLANDETAILID";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_ADVISENUM = "ADVISENUM";
		public const string C_PIECENUM = "PIECENUM";
		public const string C_WEIGHT = "WEIGHT";
				
		public BsMaterialrequirementdetailTable()
		{
			_tableName ="Bs_Materialrequirementdetail";
		}

		protected static BsMaterialrequirementdetailTable _current;

		public static BsMaterialrequirementdetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsMaterialrequirementdetailTable();

			_current.Add(C_MATERIALREQUIREMENTDETAILID, new ColumnInfo(C_MATERIALREQUIREMENTDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_MATERIALREQUIREMENTID, new ColumnInfo(C_MATERIALREQUIREMENTID, "", false, typeof(String)));
			_current.Add(C_PLANDETAILID, new ColumnInfo(C_PLANDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_ADVISENUM, new ColumnInfo(C_ADVISENUM, "", false, typeof(Decimal?)));
			_current.Add(C_PIECENUM, new ColumnInfo(C_PIECENUM, "", false, typeof(Decimal?)));
			_current.Add(C_WEIGHT, new ColumnInfo(C_WEIGHT, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo MATERIALREQUIREMENTDETAILID
		{
			get { return this[C_MATERIALREQUIREMENTDETAILID];}
		}

		public ColumnInfo MATERIALREQUIREMENTID
		{
			get { return this[C_MATERIALREQUIREMENTID];}
		}

		public ColumnInfo PLANDETAILID
		{
			get { return this[C_PLANDETAILID];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo ADVISENUM
		{
			get { return this[C_ADVISENUM];}
		}

		public ColumnInfo PIECENUM
		{
			get { return this[C_PIECENUM];}
		}

		public ColumnInfo WEIGHT
		{
			get { return this[C_WEIGHT];}
		}

		
	}
}


